/*
 *  Copyright 2023 Collate.
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *  http://www.apache.org/licenses/LICENSE-2.0
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */
@import url('../../../styles/variables.less');

.left-sidebar-col {
  border: 1px solid @border-color;
  border-radius: 0;
  border-top: 0;
  background-color: @white !important;
  height: calc(100vh - 64px);

  .ant-menu-item {
    height: auto;
    padding: 16px;
  }
  .ant-menu-submenu-title {
    height: auto !important;
    padding: 0 !important;
  }
  .ant-menu-submenu {
    height: auto;
  }
  .ant-menu-vertical {
    border: none;
    width: 100%;
  }
  .ant-menu-submenu-arrow {
    display: none;
  }
  .ant-menu-title-content {
    display: flex;
    align-items: center;
    flex-direction: column;
    padding: 16px;
  }
}
.page-layout-leftpanel {
  padding: 0 !important;
  height: 100%;
}

.left-panel-item {
  svg {
    color: @text-grey-muted;
  }
}

.left-panel-item.active,
.left-panel-item:hover {
  background-color: @left-nav-item-background;
  .left-panel-label {
    color: @text-color;
    text-decoration: none;
  }

  svg {
    color: @primary-color-hover;
  }
}

.left-panel-item.active,
.left-panel-item:hover {
  background-color: @left-nav-item-background;
  color: @text-color;

  svg {
    color: @primary-color-hover;
  }
}

.govern-menu {
  width: 100px !important;
  .ant-menu-item {
    height: auto !important;
    padding: 8px 0 0 !important;
  }
  .ant-menu-vertical {
    min-width: 100px !important;
  }
}

.left-panel-label.ant-typography {
  font-size: 12px;
  color: @text-grey-muted;
  font-weight: 500;
  padding-top: 0.5rem;
  line-height: 26px;
  text-decoration: none;
}
